@import "~ant-design-vue/dist/antd.less";
@import '~element-ui/lib/theme-chalk/index.css';

@font-face {
  font-family: Roboto Mono;
  src: url("./fonts/RobotoMono-Regular.ttf") format("truetype");
  font-display: fallback;
}

@text-color: #434343;

.ant-empty-image svg {
  height: 100%;
  width: 100%;
}

.ant-spin-container {
  height: 100%;
  display: inline-block;
  width: 100%;
}

.ant-spin-nested-loading > div > .ant-spin {
  max-height: 80%;
}

// 修正 antd 行内表单
.ant-form-inline .ant-form-item {
  margin-right: 24px;
}

// 配合 antd table scroll: {x: true} 使用
.ant-table td, .ant-table .ant-table-column-title {
  white-space: nowrap;
}

.ant-table-thead > tr > th, .ant-table-tbody > tr > td {
  padding: 8px;
}

// 定制 tab
.ant-tabs-bar {
  margin: 0 0 24px 0;
}

.ant-tabs-nav .ant-tabs-tab-active {
  font-weight: bold;
}

// 优化滚动条样式
::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.1);
  margin: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-track {
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  border: 4px solid rgba(0, 0, 0, 0);
}

// 调整下拉菜单样式
.ant-dropdown-menu-item:hover, .ant-dropdown-menu-submenu-title:hover {
  background-color: #f5f5f5;
}

// 弹窗样式
.ant-modal-close-icon {
  color: #1890FF;
  border: 0.135rem currentColor solid;
  border-radius: 100%;
  padding: 4px;
  font-size: 8px;
  font-weight: bold;
  transition: all 0.25s;

  svg {
    right: -0.023em;
    bottom: -0.025em;
    position: relative;
  }
}

.ant-modal-header {
  border-bottom: none;
  padding: 32px 80px 0 80px;
}

.ant-modal-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 40px;
}

.ant-modal-content {
  border-radius: 8px;
}

.ant-modal-body {
  padding: 8px 80px 0px 80px;
}

.ant-modal-footer {
  padding: 10px 16px 50px 16px;
  border-top: 0;
  text-align: center;
}

.ant-modal-close-icon:hover {
  color: white;
  background-color: #1890FF;
  border-color: #1890FF;
  transform: scale(1.25, 1.25);
}

.ant-select {
  min-width: 256px;
}


.ant-input-lg, .ant-select-selection__placeholder, .ant-select-search__field__placeholder {
  font-size: 14px;
  line-height: 22px;
}

.ant-btn-lg, .ant-select-lg {
  font-size: 14px;
  line-height: 22px;
}

form textarea.ant-input {
  height: inherit;
}

.ant-input-textarea-clear-icon {
  bottom: 8px;
  top: auto;
  font-size: 16px;
  color: #595959;
}


.ant-popover-message-title {
  line-height: 22px;
  min-width: 184px;
}

.simple-table {
  border-left: 1px solid #f0f0f0;
  border-top: 1px solid #f0f0f0;
  border-right: none;
  width: 100%;
  border-spacing: 0;

  th, td {
    padding: 12px 8px;
    color: #434343;
    border-bottom: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
  }

  th {
    background-color: #fafafa;
    font-weight: bold;
    padding: 13px 40px;
  }
}

.ant-descriptions-bordered .ant-descriptions-item-label {
  width: 150px;
}

.ant-form input[type='file'] {
  display: none;
}
